import http from './index.js';

/**
 * 发送验证码
 * @param {*} mobile
 */
export const sendCode = (mobile) => http.get(`/code`, { params: { mobile } });

/**
 * 登录
 * @param {*} mobile
 * @param {*} code
 */
export const login = (mobile, code) => http.post('/login', { mobile, code });
